package Exercise.Observable;

import java.util.Observable;
import java.util.Observer;

/**
 * Description：
 * Author: zhangc
 * Date：2017/9/9 11:09
 */
public class InternalObserved {
}


enum MyObserver implements Observer{
    MY_OBSERVER;

    @Override
    public void update(Observable o, Object arg) {
        System.out.println("enum MyObserver implements Observer");
    }

    public static void main(String[] args) {
        Observable observable = new Observable();
        observable.addObserver(MY_OBSERVER);

    }
}
